package main

import (
	"git-todo/controller"
	"git-todo/service"
	"git-todo/view"
)

func main() {
	// 初始化数据层
	todoRepo := service.NewTodoFileRepository()
	gitRepo := service.NewGitService()

	// 初始化服务层
	todoService := service.NewTodoService(todoRepo, gitRepo)

	// 初始化视图层
	todoView := view.NewTodoView()

	// 初始化控制器层
	cliController := controller.NewCLIController(todoService, todoView)

	// 运行应用程序
	cliController.Run()
}
